import os
import yaml


def read_data():
    path = '/data/data.yml'
    if not os.path.exists(path):
        raise FileNotFoundError(f"文件 {path} 不存在")
    with open(path, encoding="utf-8") as f:
        data = yaml.safe_load(f)
        print(data)
        return data

get_data = read_data()

